﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CaptureVision.Sunflower.UI.TestBench
{
    class Program
    {
        static void Main(string[] args)
        {
            //VectorProperty<Vec2<int>, int> prop;

            //prop = new VectorProperty<Vec2<int>, int>("resolution", new Vec2<int>(), "width", "height");

            //prop["width"] = 1500;

            //prop[1] = 2000;

            

            //Console.WriteLine(prop["width"]);
            //Console.WriteLine(prop["height"]);

            //var prop2 = new VectorProperty<Vec3<double>, double>("eye", "x", "y", "z");

            //Console.WriteLine( prop2.Vector.GetType().ToString());

            //var eye = new Vec3Property<double>("eye", "x", "y", "z");
            //eye["x"] = 800;

            //Console.WriteLine( eye[0]);

            //Console.WriteLine(eye);
            //Console.WriteLine(prop); 
            //Console.WriteLine(prop2);

            var section = new SunflowSection("image");

            section.Properties.Add("ImageSize", new Vec2Property<int>("resolution", 1280,720, "width", "height"));
            section.Properties.Add("AntiAlias", new Vec2Property<int>("aa", 1, 2, "min", "max"));
            section.Properties.Add("CameraEye", new Vec3Property<double>("eye", 5.393,3.89,50.5855 ,"x", "y", "z"));
            section.Properties.Add("Acceleration Method", new Vec1Property<string>("accel", "bih", "acceleratorName"));
            

            Console.WriteLine(section.GetSceneFileTokenString());
        }
    }
}
